import unittest
from XTestRunner import HTMLTestRunner
from one.Day18.Tools import Tools
from Day18.Tools1 import add
# run=unittest.defaultTestLoader.discover(start_dir='./',pattern='TestCase.py')
# unittest.TextTestRunner().run(run)
if __name__ == '__main__':
        suite=add().addTest()
        unittest.TextTestRunner().run(suite)

        # run=Tools().discover()
        # unittest.TextTestRunner().run(run)
#     log_set()
#
#
#     suite=unittest.defaultTestLoader.discover(start_dir='./',pattern='TestCase.py')
#
#
#     with open('baogao.html','wb') as f:
#         runner=HTMLTestRunner(stream=f,title='测试报告',rerun=1)
#         runner.run(suite)
#
#         send_mail(['baogao.html','gouwuche.txt'])